-- GENERATED SPELL FOR [Dorgok] --


function spell0_20753(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(11980,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20753', 573, 1)
end

function spell1_20753(pUnit, Event) --@Fear,n/a--
pUnit:FullCastSpellOnTarget(39119,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20753', 5500, 1)
end

function spell2_20753(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(11962,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20753', 17000, 1)
end

function Sorts_20753(pUnit, Event)
local choix_sorts_20753 = math.random(0, 2)
if choix_sorts_20753 == 0 then
pUnit:RegisterEvent('spell0_20753', 1, 1)
end
if choix_sorts_20753 == 1 then
pUnit:RegisterEvent('spell1_20753', 1, 1)
end
if choix_sorts_20753 == 2 then
pUnit:RegisterEvent('spell2_20753', 1, 1)
end
end

function mob20753_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20753', math.random(1500, 3000), 1)
end

function mob20753_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20753_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20753_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20753, 1, 'mob20753_Action')
RegisterUnitEvent(20753, 2, 'mob20753_Leave')
RegisterUnitEvent(20753, 3, 'mob20753_Kill')
RegisterUnitEvent(20753, 4, 'mob20753_Die')
